Integrand size = 21, antiderivative size = 220 \[ \int \frac {(c x)^{-1-\frac {n}{3}}}{a+b x^n} \, dx=-\frac {3 (c x)^{-n/3}}{a c n}-\frac {\sqrt {3} \sqrt [3]{b} x^{n/3} (c x)^{-n/3} \arctan \left (\frac {\sqrt [3]{b}-2 \sqrt [3]{a} x^{-n/3}}{\sqrt {3} \sqrt [3]{b}}\right )}{a^{4/3} c n}+\frac {\sqrt [3]{b} x^{n/3} (c x)^{-n/3} \log \left (\sqrt [3]{b}+\sqrt [3]{a} x^{-n/3}\right )}{a^{4/3} c n}-\frac {\sqrt [3]{b} x^{n/3} (c x)^{-n/3} \log \left (b^{2/3}+a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}\right )}{2 a^{4/3} c n} \]
-3/a/c/n/((c*x)^(1/3*n))+b^(1/3)*x^(1/3*n)*ln(b^(1/3)+a^(1/3)/(x^(1/3*n))) /a^(4/3)/c/n/((c*x)^(1/3*n))-1/2*b^(1/3)*x^(1/3*n)*ln(b^(2/3)+a^(2/3)/(x^( 2/3*n))-a^(1/3)*b^(1/3)/(x^(1/3*n)))/a^(4/3)/c/n/((c*x)^(1/3*n))-b^(1/3)*x ^(1/3*n)*arctan(1/3*(b^(1/3)-2*a^(1/3)/(x^(1/3*n)))/b^(1/3)*3^(1/2))*3^(1/ 2)/a^(4/3)/c/n/((c*x)^(1/3*n))
Result contains higher order function than in optimal. Order 5 vs. order 3 in optimal.
Time = 0.02 (sec) , antiderivative size = 37, normalized size of antiderivative = 0.17 \[ \int \frac {(c x)^{-1-\frac {n}{3}}}{a+b x^n} \, dx=-\frac {3 x (c x)^{-1-\frac {n}{3}} \operatorname {Hypergeometric2F1}\left (-\frac {1}{3},1,\frac {2}{3},-\frac {b x^n}{a}\right )}{a n} \]
Time = 0.34 (sec) , antiderivative size = 175, normalized size of antiderivative = 0.80, number of steps used = 13, number of rules used = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.571, Rules used = {870, 868, 772, 843, 750, 16, 1142, 25, 27, 1082, 217, 1103}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {(c x)^{-\frac {n}{3}-1}}{a+b x^n} \, dx\) |
\(\Big \downarrow \) 870 |
\(\displaystyle \frac {x^{n/3} (c x)^{-n/3} \int \frac {x^{-\frac {n}{3}-1}}{b x^n+a}dx}{c}\) |
\(\Big \downarrow \) 868 |
\(\displaystyle -\frac {3 x^{n/3} (c x)^{-n/3} \int \frac {1}{b x^n+a}dx^{-n/3}}{c n}\) |
\(\Big \downarrow \) 772 |
\(\displaystyle -\frac {3 x^{n/3} (c x)^{-n/3} \int \frac {x^{-n}}{a x^{-n}+b}dx^{-n/3}}{c n}\) |
\(\Big \downarrow \) 843 |
\(\displaystyle -\frac {3 x^{n/3} (c x)^{-n/3} \left (\frac {x^{-n/3}}{a}-\frac {b \int \frac {1}{a x^{-n}+b}dx^{-n/3}}{a}\right )}{c n}\) |
\(\Big \downarrow \) 750 |
\(\displaystyle -\frac {3 x^{n/3} (c x)^{-n/3} \left (\frac {x^{-n/3}}{a}-\frac {b \left (\frac {\int \frac {2 \sqrt [3]{b}-\sqrt [3]{a} x^{-n/3}}{a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}}dx^{-n/3}}{3 b^{2/3}}+\frac {\int \frac {1}{\sqrt [3]{a} x^{-n/3}+\sqrt [3]{b}}dx^{-n/3}}{3 b^{2/3}}\right )}{a}\right )}{c n}\) |
\(\Big \downarrow \) 16 |
\(\displaystyle -\frac {3 x^{n/3} (c x)^{-n/3} \left (\frac {x^{-n/3}}{a}-\frac {b \left (\frac {\int \frac {2 \sqrt [3]{b}-\sqrt [3]{a} x^{-n/3}}{a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}}dx^{-n/3}}{3 b^{2/3}}+\frac {\log \left (\sqrt [3]{a} x^{-n/3}+\sqrt [3]{b}\right )}{3 \sqrt [3]{a} b^{2/3}}\right )}{a}\right )}{c n}\) |
\(\Big \downarrow \) 1142 |
\(\displaystyle -\frac {3 x^{n/3} (c x)^{-n/3} \left (\frac {x^{-n/3}}{a}-\frac {b \left (\frac {\frac {3}{2} \sqrt [3]{b} \int \frac {1}{a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}}dx^{-n/3}-\frac {\int -\frac {\sqrt [3]{a} \left (\sqrt [3]{b}-2 \sqrt [3]{a} x^{-n/3}\right )}{a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}}dx^{-n/3}}{2 \sqrt [3]{a}}}{3 b^{2/3}}+\frac {\log \left (\sqrt [3]{a} x^{-n/3}+\sqrt [3]{b}\right )}{3 \sqrt [3]{a} b^{2/3}}\right )}{a}\right )}{c n}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {3 x^{n/3} (c x)^{-n/3} \left (\frac {x^{-n/3}}{a}-\frac {b \left (\frac {\frac {3}{2} \sqrt [3]{b} \int \frac {1}{a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}}dx^{-n/3}+\frac {\int \frac {\sqrt [3]{a} \left (\sqrt [3]{b}-2 \sqrt [3]{a} x^{-n/3}\right )}{a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}}dx^{-n/3}}{2 \sqrt [3]{a}}}{3 b^{2/3}}+\frac {\log \left (\sqrt [3]{a} x^{-n/3}+\sqrt [3]{b}\right )}{3 \sqrt [3]{a} b^{2/3}}\right )}{a}\right )}{c n}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle -\frac {3 x^{n/3} (c x)^{-n/3} \left (\frac {x^{-n/3}}{a}-\frac {b \left (\frac {\frac {3}{2} \sqrt [3]{b} \int \frac {1}{a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}}dx^{-n/3}+\frac {1}{2} \int \frac {\sqrt [3]{b}-2 \sqrt [3]{a} x^{-n/3}}{a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}}dx^{-n/3}}{3 b^{2/3}}+\frac {\log \left (\sqrt [3]{a} x^{-n/3}+\sqrt [3]{b}\right )}{3 \sqrt [3]{a} b^{2/3}}\right )}{a}\right )}{c n}\) |
\(\Big \downarrow \) 1082 |
\(\displaystyle -\frac {3 x^{n/3} (c x)^{-n/3} \left (\frac {x^{-n/3}}{a}-\frac {b \left (\frac {\frac {1}{2} \int \frac {\sqrt [3]{b}-2 \sqrt [3]{a} x^{-n/3}}{a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}}dx^{-n/3}+\frac {3 \int \frac {1}{-x^{-2 n/3}-3}d\left (1-\frac {2 \sqrt [3]{a} x^{-n/3}}{\sqrt [3]{b}}\right )}{\sqrt [3]{a}}}{3 b^{2/3}}+\frac {\log \left (\sqrt [3]{a} x^{-n/3}+\sqrt [3]{b}\right )}{3 \sqrt [3]{a} b^{2/3}}\right )}{a}\right )}{c n}\) |
\(\Big \downarrow \) 217 |
\(\displaystyle -\frac {3 x^{n/3} (c x)^{-n/3} \left (\frac {x^{-n/3}}{a}-\frac {b \left (\frac {\frac {1}{2} \int \frac {\sqrt [3]{b}-2 \sqrt [3]{a} x^{-n/3}}{a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}}dx^{-n/3}-\frac {\sqrt {3} \arctan \left (\frac {1-\frac {2 \sqrt [3]{a} x^{-n/3}}{\sqrt [3]{b}}}{\sqrt {3}}\right )}{\sqrt [3]{a}}}{3 b^{2/3}}+\frac {\log \left (\sqrt [3]{a} x^{-n/3}+\sqrt [3]{b}\right )}{3 \sqrt [3]{a} b^{2/3}}\right )}{a}\right )}{c n}\) |
\(\Big \downarrow \) 1103 |
\(\displaystyle -\frac {3 x^{n/3} (c x)^{-n/3} \left (\frac {x^{-n/3}}{a}-\frac {b \left (\frac {-\frac {\log \left (a^{2/3} x^{-2 n/3}-\sqrt [3]{a} \sqrt [3]{b} x^{-n/3}+b^{2/3}\right )}{2 \sqrt [3]{a}}-\frac {\sqrt {3} \arctan \left (\frac {1-\frac {2 \sqrt [3]{a} x^{-n/3}}{\sqrt [3]{b}}}{\sqrt {3}}\right )}{\sqrt [3]{a}}}{3 b^{2/3}}+\frac {\log \left (\sqrt [3]{a} x^{-n/3}+\sqrt [3]{b}\right )}{3 \sqrt [3]{a} b^{2/3}}\right )}{a}\right )}{c n}\) |
(-3*x^(n/3)*(1/(a*x^(n/3)) - (b*(Log[b^(1/3) + a^(1/3)/x^(n/3)]/(3*a^(1/3) *b^(2/3)) + (-((Sqrt[3]*ArcTan[(1 - (2*a^(1/3))/(b^(1/3)*x^(n/3)))/Sqrt[3] ])/a^(1/3)) - Log[b^(2/3) + a^(2/3)/x^((2*n)/3) - (a^(1/3)*b^(1/3))/x^(n/3 )]/(2*a^(1/3)))/(3*b^(2/3))))/a))/(c*n*(c*x)^(n/3))
3.28.67.3.1 Defintions of rubi rules used
Int[(c_.)/((a_.) + (b_.)*(x_)), x_Symbol] :> Simp[c*(Log[RemoveContent[a + b*x, x]]/b), x] /; FreeQ[{a, b, c}, x]
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(-(Rt[-a, 2]*Rt[-b, 2])^( -1))*ArcTan[Rt[-b, 2]*(x/Rt[-a, 2])], x] /; FreeQ[{a, b}, x] && PosQ[a/b] & & (LtQ[a, 0] || LtQ[b, 0])
Int[((a_) + (b_.)*(x_)^3)^(-1), x_Symbol] :> Simp[1/(3*Rt[a, 3]^2) Int[1/ (Rt[a, 3] + Rt[b, 3]*x), x], x] + Simp[1/(3*Rt[a, 3]^2) Int[(2*Rt[a, 3] - Rt[b, 3]*x)/(Rt[a, 3]^2 - Rt[a, 3]*Rt[b, 3]*x + Rt[b, 3]^2*x^2), x], x] /; FreeQ[{a, b}, x]
Int[((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Int[x^(n*p)*(b + a/x^n)^p, x] /; FreeQ[{a, b}, x] && ILtQ[n, 0] && IntegerQ[p]
Int[((c_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[c^(n - 1)*(c*x)^(m - n + 1)*((a + b*x^n)^(p + 1)/(b*(m + n*p + 1))), x] - Simp[ a*c^n*((m - n + 1)/(b*(m + n*p + 1))) Int[(c*x)^(m - n)*(a + b*x^n)^p, x] , x] /; FreeQ[{a, b, c, p}, x] && IGtQ[n, 0] && GtQ[m, n - 1] && NeQ[m + n* p + 1, 0] && IntBinomialQ[a, b, c, n, m, p, x]
Int[(x_)^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[1/(m + 1) Subst[Int[(a + b*x^Simplify[n/(m + 1)])^p, x], x, x^(m + 1)], x] /; FreeQ[ {a, b, m, n, p}, x] && IntegerQ[Simplify[n/(m + 1)]] && !IntegerQ[n]
Int[((c_)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[c^Int Part[m]*((c*x)^FracPart[m]/x^FracPart[m]) Int[x^m*(a + b*x^n)^p, x], x] / ; FreeQ[{a, b, c, m, n, p}, x] && IntegerQ[Simplify[n/(m + 1)]] && !Intege rQ[n]
Int[((a_) + (b_.)*(x_) + (c_.)*(x_)^2)^(-1), x_Symbol] :> With[{q = 1 - 4*S implify[a*(c/b^2)]}, Simp[-2/b Subst[Int[1/(q - x^2), x], x, 1 + 2*c*(x/b )], x] /; RationalQ[q] && (EqQ[q^2, 1] || !RationalQ[b^2 - 4*a*c])] /; Fre eQ[{a, b, c}, x]
Int[((d_) + (e_.)*(x_))/((a_.) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> S imp[d*(Log[RemoveContent[a + b*x + c*x^2, x]]/b), x] /; FreeQ[{a, b, c, d, e}, x] && EqQ[2*c*d - b*e, 0]
Int[((d_.) + (e_.)*(x_))/((a_) + (b_.)*(x_) + (c_.)*(x_)^2), x_Symbol] :> S imp[(2*c*d - b*e)/(2*c) Int[1/(a + b*x + c*x^2), x], x] + Simp[e/(2*c) Int[(b + 2*c*x)/(a + b*x + c*x^2), x], x] /; FreeQ[{a, b, c, d, e}, x]
\[\int \frac {\left (c x \right )^{-1-\frac {n}{3}}}{a +b \,x^{n}}d x\]
Time = 0.28 (sec) , antiderivative size = 255, normalized size of antiderivative = 1.16 \[ \int \frac {(c x)^{-1-\frac {n}{3}}}{a+b x^n} \, dx=-\frac {6 \, x e^{\left (-\frac {1}{3} \, {\left (n + 3\right )} \log \left (c\right ) - \frac {1}{3} \, {\left (n + 3\right )} \log \left (x\right )\right )} - 2 \, \sqrt {3} \left (\frac {b c^{-n - 3}}{a}\right )^{\frac {1}{3}} \arctan \left (\frac {2 \, \sqrt {3} a \left (\frac {b c^{-n - 3}}{a}\right )^{\frac {2}{3}} x e^{\left (-\frac {1}{3} \, {\left (n + 3\right )} \log \left (c\right ) - \frac {1}{3} \, {\left (n + 3\right )} \log \left (x\right )\right )} - \sqrt {3} b c^{-n - 3}}{3 \, b c^{-n - 3}}\right ) - 2 \, \left (\frac {b c^{-n - 3}}{a}\right )^{\frac {1}{3}} \log \left (\frac {x e^{\left (-\frac {1}{3} \, {\left (n + 3\right )} \log \left (c\right ) - \frac {1}{3} \, {\left (n + 3\right )} \log \left (x\right )\right )} + \left (\frac {b c^{-n - 3}}{a}\right )^{\frac {1}{3}}}{x}\right ) + \left (\frac {b c^{-n - 3}}{a}\right )^{\frac {1}{3}} \log \left (\frac {x^{2} e^{\left (-\frac {2}{3} \, {\left (n + 3\right )} \log \left (c\right ) - \frac {2}{3} \, {\left (n + 3\right )} \log \left (x\right )\right )} - \left (\frac {b c^{-n - 3}}{a}\right )^{\frac {1}{3}} x e^{\left (-\frac {1}{3} \, {\left (n + 3\right )} \log \left (c\right ) - \frac {1}{3} \, {\left (n + 3\right )} \log \left (x\right )\right )} + \left (\frac {b c^{-n - 3}}{a}\right )^{\frac {2}{3}}}{x^{2}}\right )}{2 \, a n} \]
-1/2*(6*x*e^(-1/3*(n + 3)*log(c) - 1/3*(n + 3)*log(x)) - 2*sqrt(3)*(b*c^(- n - 3)/a)^(1/3)*arctan(1/3*(2*sqrt(3)*a*(b*c^(-n - 3)/a)^(2/3)*x*e^(-1/3*( n + 3)*log(c) - 1/3*(n + 3)*log(x)) - sqrt(3)*b*c^(-n - 3))/(b*c^(-n - 3)) ) - 2*(b*c^(-n - 3)/a)^(1/3)*log((x*e^(-1/3*(n + 3)*log(c) - 1/3*(n + 3)*l og(x)) + (b*c^(-n - 3)/a)^(1/3))/x) + (b*c^(-n - 3)/a)^(1/3)*log((x^2*e^(- 2/3*(n + 3)*log(c) - 2/3*(n + 3)*log(x)) - (b*c^(-n - 3)/a)^(1/3)*x*e^(-1/ 3*(n + 3)*log(c) - 1/3*(n + 3)*log(x)) + (b*c^(-n - 3)/a)^(2/3))/x^2))/(a* n)
Result contains complex when optimal does not.
Time = 1.05 (sec) , antiderivative size = 223, normalized size of antiderivative = 1.01 \[ \int \frac {(c x)^{-1-\frac {n}{3}}}{a+b x^n} \, dx=\frac {c^{- \frac {n}{3} - 1} x^{- \frac {n}{3}} \Gamma \left (- \frac {1}{3}\right )}{a n \Gamma \left (\frac {2}{3}\right )} - \frac {\sqrt [3]{b} c^{- \frac {n}{3} - 1} e^{- \frac {2 i \pi }{3}} \log {\left (1 - \frac {\sqrt [3]{b} x^{\frac {n}{3}} e^{\frac {i \pi }{3}}}{\sqrt [3]{a}} \right )} \Gamma \left (- \frac {1}{3}\right )}{3 a^{\frac {4}{3}} n \Gamma \left (\frac {2}{3}\right )} - \frac {\sqrt [3]{b} c^{- \frac {n}{3} - 1} \log {\left (1 - \frac {\sqrt [3]{b} x^{\frac {n}{3}} e^{i \pi }}{\sqrt [3]{a}} \right )} \Gamma \left (- \frac {1}{3}\right )}{3 a^{\frac {4}{3}} n \Gamma \left (\frac {2}{3}\right )} - \frac {\sqrt [3]{b} c^{- \frac {n}{3} - 1} e^{\frac {2 i \pi }{3}} \log {\left (1 - \frac {\sqrt [3]{b} x^{\frac {n}{3}} e^{\frac {5 i \pi }{3}}}{\sqrt [3]{a}} \right )} \Gamma \left (- \frac {1}{3}\right )}{3 a^{\frac {4}{3}} n \Gamma \left (\frac {2}{3}\right )} \]
c**(-n/3 - 1)*gamma(-1/3)/(a*n*x**(n/3)*gamma(2/3)) - b**(1/3)*c**(-n/3 - 1)*exp(-2*I*pi/3)*log(1 - b**(1/3)*x**(n/3)*exp_polar(I*pi/3)/a**(1/3))*ga mma(-1/3)/(3*a**(4/3)*n*gamma(2/3)) - b**(1/3)*c**(-n/3 - 1)*log(1 - b**(1 /3)*x**(n/3)*exp_polar(I*pi)/a**(1/3))*gamma(-1/3)/(3*a**(4/3)*n*gamma(2/3 )) - b**(1/3)*c**(-n/3 - 1)*exp(2*I*pi/3)*log(1 - b**(1/3)*x**(n/3)*exp_po lar(5*I*pi/3)/a**(1/3))*gamma(-1/3)/(3*a**(4/3)*n*gamma(2/3))
\[ \int \frac {(c x)^{-1-\frac {n}{3}}}{a+b x^n} \, dx=\int { \frac {\left (c x\right )^{-\frac {1}{3} \, n - 1}}{b x^{n} + a} \,d x } \]
-b*integrate(x^(2/3*n)/(a*b*c^(1/3*n + 1)*x*x^n + a^2*c^(1/3*n + 1)*x), x) - 3*c^(-1/3*n - 1)/(a*n*x^(1/3*n))
\[ \int \frac {(c x)^{-1-\frac {n}{3}}}{a+b x^n} \, dx=\int { \frac {\left (c x\right )^{-\frac {1}{3} \, n - 1}}{b x^{n} + a} \,d x } \]
Timed out. \[ \int \frac {(c x)^{-1-\frac {n}{3}}}{a+b x^n} \, dx=\int \frac {1}{{\left (c\,x\right )}^{\frac {n}{3}+1}\,\left (a+b\,x^n\right )} \,d x \]